Half Pyramid Binary Pattern Programs in python